<template>
  <div class="notifications">
    <h1>通知</h1>
    <el-button type="primary" @click="$router.push('/explore')">返回探索页</el-button>
  </div>
</template>

<script setup>
import { useRouter } from 'vue-router';
import { useAuthStore } from '../stores/auth';

const router = useRouter();
const authStore = useAuthStore();

if (!authStore.token) {
  router.push('/login?redirect=/notifications');
}
</script>

<style scoped>
.notifications { max-width: 800px; margin: 20px auto; padding: 20px; }
</style>